﻿@model List<LbangCMS.Areas.Admin.Models.PropertyModel>
@if (Model != null && Model.Any())
{
    <table class="table datatable">
        <thead>
            <tr>
                <th data-width="40">#</th>
                <th>属性名</th>
                <th data-width="200">属性值</th>
                <th data-width="100">排序号</th>
                <th data-width="100">操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @item.ID
                        <input type="hidden" class="itemId" value="@item.ID" />
                    </td>
                    <td><input type="text" class="propertyName" value="@item.PropertyName" style="width:150px;height:20px" /></td>
                    <td><input type="text" class="propertyValue" value="@item.PropertyValue" style="width:150px;height:20px" /></td>
                    <td><input type="text" class="sortIndex" value="@item.SortIndex" style="width:60px;height:20px" /></td>
                    <td>
                        <a href="#" onclick="UpdateProperty(this)">保存</a>&nbsp;&nbsp;<a href="#" onclick="Remove(@item.ID)">移除</a>
                    </td>
                </tr>
            }

        </tbody>
    </table>
}
else
{
    <div class="alert alert-info">该产品还未设置属性信息</div>
}

